package main

import "fmt"

func main() {
	var userinfo = make(map[string]string)
	userinfo["username"] = "王华"
	userinfo["age"] = "27"
	userinfo["sex"] = "男"
	fmt.Println(userinfo["username"])
	fmt.Println(userinfo["age"])
	fmt.Println(userinfo["sex"])
	var user=map[string]string{
		"username":"王芳",
		"age":"45",
	}
	user["username"]="赵康"
	fmt.Println(user)
	//查找
	fmt.Println(user["age"])
	v,ok:=userinfo["xxxxxxxx"]
	fmt.Println(v,ok)
	//delete
	var myuser=map[string]string{
		"username":"杜晓",
		"age":"59",
		"city":"温州",
		"address":"湖滨路110号",
		"email":"128.0.0.1@163.com",
		"qq":"758493021",
	}
	fmt.Println(myuser)
	delete(myuser,"address")
	fmt.Println(myuser)
}
